import request from '@/utils/encryptionRequest';

// 支持的银行列表
export function cardBankListQuery(data: object, opt = {}) {
  return request({
    method: 'post',
    url: '/card_bankListQuery.do',
    data,
    opt,
  });
}

// 绑卡申请
export function cardBindApply(data: object, opt = {}) {
  return request({
    method: 'post',
    url: '/card_bindApply.do',
    data,
    opt,
  });
}

// 绑卡确认
export function cardBindCardConfirm(data: object, opt = {}) {
  return request({
    method: 'post',
    url: '/card_bindCardConfirm.do',
    data,
    opt,
  });
}

// 银行卡列表
export function myCardList(data: object, opt = {}) {
  return request({
    method: 'post',
    url: '/myCardList.do',
    data,
    opt,
  });
}

// 解绑银行卡
export function cardBindCardUnbind(data: object, opt = {}) {
  return request({
    method: 'post',
    url: '/card_bindCardUnbind.do',
    data,
    opt,
  });
}

// 用户进件开户
export function UserApply(data: object, opt = {}) {
  return request({
    method: 'post',
    url: '/UserApply.do',
    data,
    opt,
  });
}

// 用户进件绑卡
export function UserApplyBank(data: object, opt = {}) {
  return request({
    method: 'post',
    url: '/UserApplyBank.do',
    data,
    opt,
  });
}

// 用户进件绑卡修改
export function UserApplyBankUpd(data: object, opt = {}) {
  return request({
    method: 'post',
    url: '/UserApplyBankUpd.do',
    data,
    opt,
  });
}

// 公司进件开户
export function CompanyApply(data: object, opt = {}) {
  return request({
    method: 'post',
    url: '/CompanyApply.do',
    data,
    opt,
  });
}

// 公司进件绑卡
export function CompanyApplyBank(data: object, opt = {}) {
  return request({
    method: 'post',
    url: '/CompanyApplyBank.do',
    data,
    opt,
  });
}

// 公司进件绑卡修改
export function CompanyApplyBankUpd(data: object, opt = {}) {
  return request({
    method: 'post',
    url: '/CompanyApplyBankUpd.do',
    data,
    opt,
  });
}

// 进件详情
export function myAccountDetail(data: object, opt = {}) {
  return request({
    method: 'post',
    url: '/myAccountDetail.do',
    data,
    opt,
  });
}
